import MainIndex from "../pages/MainIndex.vue";
import TaskIndex from "../pages/TaskIndex.vue";
import UserIndex from "../pages/UserIndex.vue";
import SearchPage from "../layout/SearchPage.vue";
import UserEditIndex from "../pages/UserEditIndex.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import Login_index from "../pages/user/login_index.vue";
import TaskUpdate from "../pages/task/TaskUpdate.vue";
//定义一些路由
const routes = [
    {path: '/', component: MainIndex, meta: {requiresAuth: true}},
    {path: '/task', component: TaskIndex, meta: {requiresAuth: true}},
    {path: '/task/update', component: TaskUpdate, meta: {requiresAuth: true}},
    {path: '/user', component: UserIndex, meta: {requiresAuth: true}},
    {path: '/search', component: SearchPage, meta: {requiresAuth: true}},
    {path: '/search/list', component: SearchResultPage, meta: {requiresAuth: true}},
    {path: '/user/edit', component: UserEditIndex, meta: {requiresAuth: true}},
    {path: '/user/login', component: Login_index},
]


export default routes;